package com.yztc.yidoutang.fragment.fragment_wode;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;

import com.yztc.yidoutang.R;
import com.yztc.yidoutang.activity.register_activity.RegisterActivity;
import com.yztc.yidoutang.base.BaseFragment;

import cn.sharesdk.framework.ShareSDK;
import cn.sharesdk.onekeyshare.OnekeyShare;

/**
 * “我的”页面Fragment
 */
public class WoDeFragment extends BaseFragment {
    private Button register;
    private Button btn;

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        ShareSDK.initSDK(getActivity());//初始化sharedsdk
        register = (Button) view.findViewById(R.id.find_wode_btn_register);

        register.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), RegisterActivity.class);
                getActivity().startActivity(intent);
            }
        });
       
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_wode;
    }
}